using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class StartAudio : MonoBehaviour
{
    [SerializeField]private AudioSource musicSource;
    [SerializeField]private AudioSource sfxSource;

    void Start()
    {
        DataManager.instance.LoadMusicSetting();
        DataManager.instance.LoadSfxSetting();
        if(musicSource!=null)
        {
            musicSource.volume = DataManager.instance.musicSetting;
        }
        if(sfxSource!=null)
        {
            sfxSource.volume = DataManager.instance.sfxSetting;
        }

    }
}
